
// router/config.ts ----------------路由路径配置文件------------
/*
  * 元信息
  * menu: 用于菜单显示
*/
export const routes = [
  {
    path: '/',
    redirect: '/home'
  },
  // {
  //   path: '/login',
  //   name: 'login',
  //   component: () => import("@v/login/index.vue")
  // },
  {
    path: '/home',
    name: 'Home',
    redirect: '/product',
    component: () => import("@v/layout/index.vue"),
    children: [
      //   {
      //   path: '/task',
      //   name: 'task',
      //   component: () => import("@v/task/index.vue"),
      //   meta: {
      //     menu: 'task'
      //   }
      // },
      {
        path: '/product',
        name: 'product',
        component: () => import("@v/product/index.vue"),
        meta: {
          menu: 'product'
        }
      },
      {
        path: '/collect',
        name: 'collect',
        component: () => import("@v/collect/index.vue"),
        meta: {
          menu: 'collect'
        }
      },
      {
        path: '/productDetail',
        name: 'productDetail',
        component: () => import("@v/product/productDetail.vue"),
        meta: {
          menu: 'productDetail'
        }
      },
      {
        path: '/search',
        name: 'search',
        component: () => import("@v/search/index.vue"),
        meta: {
          menu: 'search'
        }
      },
      {
        path: '/sheinType',
        name: 'sheinType',
        component: () => import("@v/sheinType/index.vue"),
        meta: {
          menu: 'sheinType'
        }
      },
      {
        path: '/setting',
        name: 'setting',
        component: () => import("@v/setting/index.vue"),
        meta: {
          menu: 'setting'
        }
      }
    ]
  },
  {
    path: '/watermark',
    name: 'watermark',
    component: () => import("@v/tools/watermark.vue"),
    meta: {
      menu: 'watermark'
    }
  },
  {
    path: '/size',
    name: 'size',
    component: () => import("@v/tools/size/index.vue")
  }
]